import request from '@/utils/request'

// 查询新扩改登记列表
export function listProjectExpand (query) {
  return request({
    url: '/projectManage/projectExpand/list',
    method: 'get',
    params: query
  })
}

// 查询新扩改登记详细
export function getProjectExpand (id) {
  return request({
    url: '/projectManage/projectExpand/' + id,
    method: 'get'
  })
}

// 新增新扩改登记
export function addProjectExpand (data) {
  return request({
    url: '/projectManage/projectExpand',
    method: 'post',
    data: data
  })
}

// 修改新扩改登记
export function updateProjectExpand (data) {
  return request({
    url: '/projectManage/projectExpand',
    method: 'put',
    data: data
  })
}

// 删除新扩改登记
export function delProjectExpand (id) {
  return request({
    url: '/projectManage/projectExpand/' + id,
    method: 'delete'
  })
}

// 审批
export function approve (data) {
  return request({
    url: '/projectManage/projectExpand/approve',
    method: 'post',
    data: data
  })
}